Skip to content

Fix architecture diagram light mode and responsiveness#836

Merged
teallarson merged 2 commits intomainfrom
teallarson/fix-light-mode-layout
Feb 27, 2026
Merged

Fix architecture diagram light mode and responsiveness#836
teallarson merged 2 commits intomainfrom
teallarson/fix-light-mode-layout

Conversation

@teallarson
Copy link
Contributor

@teallarson teallarson commented Feb 27, 2026

This diagram did not show up correctly in light mode before. Now it does.

https://docs-git-teallarson-fix-light-mode-layout-arcade-ai.vercel.app/en/get-started/about-arcade

Screenshot 2026-02-27 at 4 44 21 PM

Summary

  • Replace <picture> element with next/image components using dark:hidden / hidden dark:block Tailwind classes on the About Arcade page
  • Fixes the diagram not responding to the site's theme toggle (was using prefers-color-scheme which only tracks OS setting, not the manual theme switch)
  • Adds max-w-full for responsive sizing so the image no longer overflows on smaller viewports

Note

Low Risk
Low risk documentation-only change that alters image rendering for dark/light theme and responsive sizing; main risk is unintended layout/CLS regressions from next/image dimensions/classes.

Overview
Fixes the About Arcade architecture diagram to correctly follow the site’s theme toggle and scale responsively by replacing the <picture>/prefers-color-scheme approach with two next/image renders gated by Tailwind dark classes.

Updates the generated markdown export to reflect the new image rendering and bumps the page “Last updated” date.

Written by Cursor Bugbot for commit 2131f19. This will update automatically on new commits. Configure here.

Replace <picture> element with next/image components using dark:hidden/hidden dark:block
pattern to properly respond to the site's theme toggle instead of OS-level
prefers-color-scheme. Add max-w-full for responsive sizing.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Feb 27, 2026 9:44pm

Request Review

@teallarson teallarson merged commit b6312ee into main Feb 27, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants